//package com.sky.module.suppot.datatrace.util;
//
//import com.it.domain.Employee;
//
//import java.util.List;
//
//public class Client {
//    public static void main(String[] args) {
//        com.it.annotation.utils.AbstractContrast contrast = new com.it.annotation.utils.AbstractContrast<com.it.annotation.utils.BaseChangeLog>() {
//            @Override
//            protected com.it.annotation.utils.BaseChangeLog initChangeLog() {
//                final com.it.annotation.utils.BaseChangeLog baseChangeLog = new com.it.annotation.utils.BaseChangeLog();
////                StudentChangeLog changeLog = new StudentChangeLog();
////                初始化变更单据ID
////                changeLog.setDocumentId(2L);
////                baseChangeLo
//                baseChangeLog.setDocumentId(1L);
//                return baseChangeLog;
//            }
//        };
//        Employee employee = new Employee();
//        employee.setEmpId(1);
//        employee.setName("王五");
//        employee.setJob("hr");
//        employee.setDepartment("技术部");
//        Employee employee1 = new Employee();
//        employee1.setDepartment("运维部");
//        employee1.setJob("测试");
//        employee1.setName("李健");
//        employee1.setEmpId(2);
//
//
////         比  较字段 可以
//        String oldStr = "";
//        String newStr = "";
//        List<com.it.annotation.utils.StudentChangeLog> changeLogList = contrast.compareFields(employee, employee1);
//        for (com.it.annotation.utils.BaseChangeLog changeLog : changeLogList) {
//            oldStr += changeLog.getPropDesc() + ":" + changeLog.getBeforeChange() + "\n";
//            newStr += changeLog.getPropDesc() + ":" + changeLog.getAfterChange() + "\n";
//            System.out.print("单据ID为：" + changeLog.getDocumentId());
//            System.out.print("，属性名为：" + changeLog.getPropName());
//            System.out.print("，属性描述为：" + changeLog.getPropDesc());
//            System.out.print("，变更前为：" + changeLog.getBeforeChange());
//            System.out.print("，变更后为：" + changeLog.getAfterChange());
////
//            System.out.println();
//        }
//        System.out.println(oldStr);
//        System.out.println(newStr);
//    }
//}
